package oop5.phone;

public class CommonHandSet {    //功能手机，父类
    private String brand;
    private String series;  //型号

    public CommonHandSet(String brand, String series) {
        this.brand = brand;
        this.series = series;
    }

    public void call(){
        System.out.println(brand+series+"手机能打电话");
    }

    public void SMS(){
        System.out.println(brand+series+"手机能发短信");
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getSeries() {
        return series;
    }

    public void setSeries(String series) {
        this.series = series;
    }
}
